package com.example.shopspring.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.shopspring.common.ResultData;
import com.example.shopspring.dto.AdminInDto;
import com.example.shopspring.dto.UpdatePasswordInDto;
import com.example.shopspring.entity.Admin;

public interface AdminService extends IService<Admin> {

    ResultData login(AdminInDto adminInDto);

    //获取用户信息
    Admin getAdminInfo(String token);

    /**
     * 修改密码
     * @param token token
     * @param passwordInDto 参数集合类
     * @return
     */
    ResultData updatePassword(String token, UpdatePasswordInDto passwordInDto);

}
